package com.example.siyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
/**
 * @Auther: 全
 * @Date: 2022/10/2 19:54
 * @Description: 权限表
 */
public class PermissionsTable {
    private int id;
    /* 部门姓名 */
    private String departmentname;
    /* 部门描述 */
    private String departmentdescription;
    /* 是否已启用 */
    private Integer isenable;
    /* 管理员名称 */
    private String adminname;
    /* 时间 */
    private String time;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /* 创建时间 */
    private Timestamp createtime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAdminname() {
        return adminname;
    }

    public void setAdminname(String adminname) {
        this.adminname = adminname;
    }

    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    public String getDepartmentdescription() {
        return departmentdescription;
    }

    public void setDepartmentdescription(String departmentdescription) {
        this.departmentdescription = departmentdescription;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getIsenable() {
        return isenable;
    }

    public void setIsenable(Integer isenable) {
        this.isenable = isenable;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "PermissionsTable{" +
                "id=" + id +
                ", departmentname='" + departmentname + '\'' +
                ", departmentdescription='" + departmentdescription + '\'' +
                ", isenable=" + isenable +
                ", adminname='" + adminname + '\'' +
                ", time='" + time + '\'' +
                ", createtime=" + createtime +
                '}';
    }
}
